package com.molyfun.parents.rest.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.molyfun.parents.rest.BaseListResponse;

/**
 * Created by william(liuchao.hit@gmail.com).
 * Date:29/09/2017.
 */

public class CustomPlanlistResponse extends BaseListResponse<CustomPlanlistResponse.PlanListBean> {

    public static class PlanListBean implements Parcelable {

        /**
         * id : 0e6cfc1a1f9c436a87d4e917b7b8baa5
         * begindatetime : 1506661777000
         * enddatetime : null
         * degree : -1 未评价 满意度 1:满意 2:一般 3:不满意
         * status : 0 进行中 1已完成
         * imgroupid : 28587726012417
         * username : molyfun
         * userid : ae9d84b0a91d48dab8818082264ae870
         * tsuserid : 8a2d9263540d4e2f01540d779f5c010f
         */

        private String id;
        private long begindatetime;
        private long enddatetime;
        private String degree;
        private String status;
        private String imgroupid;
        private String username;
        private String userid;
        private String tsuserid;
        private long unreadMessageNum;

        protected PlanListBean(Parcel in) {
            id = in.readString();
            begindatetime = in.readLong();
            enddatetime = in.readLong();
            degree = in.readString();
            status = in.readString();
            imgroupid = in.readString();
            username = in.readString();
            userid = in.readString();
            tsuserid = in.readString();
            unreadMessageNum = in.readLong();
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(id);
            dest.writeLong(begindatetime);
            dest.writeLong(enddatetime);
            dest.writeString(degree);
            dest.writeString(status);
            dest.writeString(imgroupid);
            dest.writeString(username);
            dest.writeString(userid);
            dest.writeString(tsuserid);
            dest.writeLong(unreadMessageNum);
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public static final Creator<PlanListBean> CREATOR = new Creator<PlanListBean>() {
            @Override
            public PlanListBean createFromParcel(Parcel in) {
                return new PlanListBean(in);
            }

            @Override
            public PlanListBean[] newArray(int size) {
                return new PlanListBean[size];
            }
        };

        public long getUnreadMessageNum() {
            return unreadMessageNum;
        }

        public void setUnreadMessageNum(long unreadMessageNum) {
            this.unreadMessageNum = unreadMessageNum;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public long getBegindatetime() {
            return begindatetime;
        }

        public void setBegindatetime(long begindatetime) {
            this.begindatetime = begindatetime;
        }

        public long getEnddatetime() {
            return enddatetime;
        }

        public void setEnddatetime(long enddatetime) {
            this.enddatetime = enddatetime;
        }

        public String getDegree() {
            return degree;
        }

        public void setDegree(String degree) {
            this.degree = degree;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getImgroupid() {
            return imgroupid;
        }

        public void setImgroupid(String imgroupid) {
            this.imgroupid = imgroupid;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getUserid() {
            return userid;
        }

        public void setUserid(String userid) {
            this.userid = userid;
        }

        public String getTsuserid() {
            return tsuserid;
        }

        public void setTsuserid(String tsuserid) {
            this.tsuserid = tsuserid;
        }


        public PlanListBean() {
        }

    }

}
